<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>后台管理系统</title>
    <link rel="icon" href="/img/logo.png" type="image/x-icon"/>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <link rel="stylesheet" href="/css/admin/project/free_list.css">
    <script src="/script/jquery-3.3.1.min.js"></script>
    <script src="/layui/layui.js"></script>
    <script src="/script/admin/project/free_list.js"></script>
    <script type="text/html" id="barDemo">
        {{#  if(d.source == 'normal'){  }}
        <a class="layui-btn layui-btn-primary  layui-btn-xs" lay-event="fankui">变现反馈</a>
        <a class="layui-btn layui-btn-primary  layui-btn-xs" lay-event="process">新进展</a>
        {{#  }  }}
        <a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="detail" >编辑<cite style="display:none ">编辑</cite></a>
<!--        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>-->
<!--        <a class="layui-btn layui-border-green layui-btn-xs" lay-event="copyUrl">链接</a>-->
        <a class="layui-btn layui-btn-xs" lay-event="copyTitleUrl">标题链接</a>
<!--        <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="commit_baidu">普通提交</a>-->
<!--        <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="baidu_fast">快速收录</a>-->
<!--        <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="bing">Bing收录</a>-->
    </script>
    <script type="text/html" id="barDemo2">
         <a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="detail" >编辑<cite style="display:none ">编辑</cite></a>
        {{#  if(d.offline == '0'){  }}
            <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="unline">下架</a>
        {{#  }  }}

    </script>
    <script type="text/html" id="barDemo3">
        {{# if(d.isHomePage == '1'){ }}
        <input type="checkbox" checked="" name="isHomePage" lay-skin="switch" lay-filter="switch" title="首页显示">
        {{# }else{ }}
        <input type="checkbox"  name="isHomePage" lay-skin="switch" lay-filter="switch" title="首页显示">
        {{# } }}

    </script>
    <script type="text/html" id="titleBar">
        <a href="https://www.daydayzhuan.com/article/{{d.id}}" target="_blank">{{d.title}}</a>
    </script>
    <script type="text/html" id="readBar">
        {{d.todayReadCount}} ({{d.todayAppReadCount}})
    </script>
    <script type="text/html" id="effectBar">
        {{# if(d.commented == '1'){ }}
        <input type="checkbox" checked="" name="commented" lay-skin="switch" lay-filter="commented" title="有效">
        {{# }else{ }}
        <input type="checkbox"  name="commented" lay-skin="switch" lay-filter="commented" title="无效">
        {{# } }}

    </script>
</head>
<body>
<input type="hidden" id="isAdmin" th:value="${isAdmin}">
            <div class="layui-row">
                <div class="layui-form form">
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">项目名称:</label>
                            <div class="layui-input-inline">
                                <input type="text" name="title" id="title"  autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label">项目类型:</label>
                            <div class="layui-input-inline">
                                <select name="type"  id="type" lay-search="">
                                    <option></option>
                                </select>
                            </div>
                        </div>
                        <div class="layui-inline" th:if="${isAdmin}">
                            <label class="layui-form-label">置顶:</label>
                            <div class="layui-input-inline">
                                <select name="commend"  id="commend" >
                                    <option value="">全部</option>
                                    <option value="1">是</option>
                                    <option value="0">否</option>
                                </select>
                            </div>
                        </div>
                        <div class="layui-inline" th:if="${isAdmin}">
                            <label class="layui-form-label">首页轮播:</label>
                            <div class="layui-input-inline">
                                <select name="type"  id="commented" >
                                    <option value="">全部</option>
                                    <option value="1">是</option>
                                    <option value="0">否</option>
                                </select>
                            </div>
                        </div>
                        <div class="layui-inline" th:if="${isAdmin}">
                            <label class="layui-form-label">复制地址</label>
                            <div class="layui-input-inline">
                                <input type="text" readonly id="board"  autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-inline" th:if="${isAdmin}">
                            <label class="layui-form-label">作者ID</label>
                            <div class="layui-input-inline">
                                <input type="text"  id="authorId"  autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md-offset5">
                            <div class="layui-btn"  id="search" >搜索</div>
                            <button class="layui-btn" th:if="${isAdmin}" onclick="toAdd()">新增<cite style="display: none">新增</cite></button>
                            <div class="layui-btn"  th:if="${isAdmin}" id="updateSiteMap" >更新网站地图</div>
                        </div>
                    </div>
                </div>
            </div>

<div class="layui-row">
    <table class="layui-hide" id="data" lay-filter="dataTable"></table>
</div>
</body>
</html>